package tt.dz.service.imp.middleware;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import tt.dz.dao.base.BaseDao;
import tt.dz.dao.base.BasisDao;
import tt.dz.entity.base.OmsLog;
import tt.dz.service.middleware.OmsLogService;

@Service @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class OmsLogServiceImpl implements OmsLogService{
	@Autowired
	BaseDao baseDao;
//	@Autowired
//	BasisDao basisDao;
	@Override
	public List<OmsLog> getAll() {
		OmsLog log = new OmsLog();
		System.out.println(log.toString());
		return baseDao.findAll(log);
//		return dao.findExample(log);
	}

}
